package com.baidu.bulls.stock.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * ?û??˺ű
 * </p>
 *
 * @author 蔡志豪
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_trade_account")
public class TradeAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ??????ʶ
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("userId")
    private Long userid;

    /**
     * 交易账号
     */
    @TableField("accountNo")
    private String accountno;

    /**
     * 余额
     */
    private Long balance;

    /**
     * 账户组ID
     */
    @TableField("tradeGroupId")
    private Long tradeGroupId;

    /**
     *  开户时间
     */
    @TableField("activeTime")
    private LocalDateTime activetime;

    /**
     *状态(0:有效， 1：锁定， 2：禁用）
     */
    private Integer status;

    /**
     * 机构类型id
     */
    @TableField("institutionTypeId")
    private String institutiontypeid;

    /**
     * 对应机构类型下的机构id
     */
    @TableField("institutionId")
    private Long institutionid;

    /**
     * 公司ID
     */
    @TableField("companyId")
    private Long companyid;

    /**
     * 用户名称
     */
    @TableField("userName")
    private String username;

    /**
     *  账户组名称
     */
    @TableField("tradeGroupName")
    private String tradegroupname;


}
